/*
 * (C) Copyright 2023 orchy
 * This file is licensed under the BSD-3-Clause license.
 * <https://spdx.org/licenses/BSD-3-Clause.html>
 */
#ifndef _STDARG_H
#define _STDARG_H

#include <__stdarg.h>
// This file only declares wrappers around __stdarg.h
// This is necessary since some headers need stdarg.h things, but we can't include any standard headers.
// The solution to this a non standard header.

// # 7.15.0
// ## 7.15.0.3
typedef __va_list va_list;

// # 7.15.1
// ## 7.15.1.1
#define va_arg(ap, type) __va_arg(ap, type)

// ## 7.15.1.2
#define va_copy(dest, src) __va_copy(dest, src)

// ## 7.15.1.3
#define va_end(ap) __va_end(ap)

// ## 7.15.1.4
#define va_start(ap, parmN) __va_start(ap, parmN)

#endif
